package com.gzist.elderlyserviceplatform.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzist.elderlyserviceplatform.entity.dto.ListQueryPageDTO;
import com.gzist.elderlyserviceplatform.entity.po.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzist.elderlyserviceplatform.entity.vo.ClientCommentVo;
import com.gzist.elderlyserviceplatform.entity.vo.CommentPageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 评论信息表 Mapper 接口
 */
public interface CommentMapper extends BaseMapper<Comment> {

    Page<CommentPageVO> queryPage(@Param("page") Page<CommentPageVO> page, @Param("listQueryPageDTO") ListQueryPageDTO listQueryPageDTO);

    List<ClientCommentVo> list(String id);

    List<ClientCommentVo> list1(String id, String parentId);
}
